﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 单位仓储接口
    /// </summary>
    public interface IUnitRepository 
    {

        /// <summary>
        /// 获取省份列表
        /// </summary>
        /// <returns></returns>
        Task<List<Province>> ProvinceList();
        /// <summary>
        /// 获取城市列表
        /// </summary>
        /// <param name="provinceId"></param>
        /// <returns></returns>

        Task<List<City>> CityList(int provinceId);

        /// <summary>
        /// 获取区县列表
        /// </summary>
        /// <param name="cityId"></param>
        /// <returns></returns>
        Task<List<Area>> UnitList(int cityId);

        /// <summary>
        /// 添加单位
        /// </summary>
        /// <param name="unit"></param>
        /// <returns></returns>
        Task<int> UnitAdd(Unit unit);

        /// <summary>
        /// 反填单位
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Unit>> Unit();
        /// <summary>
        /// 单位列表
        /// </summary>
        /// <param name="companyName"></param>
        /// <returns></returns>
        Task<List<Unit>> GetUnitList(string companyName);







    }



}
